<?php

#<editor-fold defaultstate="collapsed" desc="start">
ini_set('max_execution_time', 10);
include 'core/core.php';

CCore::Using('logger.inline');
$oLogger = null;
#</editor-fold>
$oLogger = new CCoreLoggerInline('<br />'."\r\n");

/**/
CCore::Using('socket.smtp');

$oSmtpConfig = new CCoreSocketSmtpConfig('u-server', 26, 'test', 'p12345', 'localhost', true, 5, 5);

$oSmtp = new CCoreSocketSmtp($oSmtpConfig, $oLogger);
$oSmtpMessage = new CCoreSocketSmtpMessage('test@localhost', 
		file_get_contents('examples/eml/simple.eml'), array('test@localhost'));

/**/
if ($oSmtp->ConnectAndLogin())
{
	$oSmtp->SendMessage($oSmtpMessage);
}
else
{
	echo 'Error';
}

/**/
